package com.ihd.ihardware.pojo;

import java.io.Serializable;
import java.util.List;

import cn.wowjoy.commonlibrary.bean.BaseResponse;

public class MembersRes extends BaseResponse<List<MembersRes.DataBean>> implements Serializable {


    public static class DataBean implements Serializable {
        /**
         * memberId : 5
         * relation : 6
         * avatar : http://want580.oss-cn-hangzhou.aliyuncs.com/Public/Uploads/2018-07-26/4a28e060-e29c-479e-b47d-e7b86062bb98.jpg
         * sex : 1
         */

        private String memberId;
        private int relation;
        private String avatar;
        private int sex;
        private String birthday;
        private String height;
        private String weight;
        private String userId;


        public String getMemberId() {
            return memberId;
        }

        public void setMemberId(String memberId) {
            this.memberId = memberId;
        }

        public String getMember() {
            switch (relation) {
                case 0:
                    return "我";
                case 1:
                    return "爱人";
                case 2:
                    return "爸爸";
                case 3:
                    return "妈妈";
                case 4:
                    return "儿子";
                case 5:
                    return "女儿";
                case 6:
                    return "朋友";
                case 9:
                    return "其他";
                default:
                    break;
            }
            return "其他";
        }

        public int getRelation() {
            return relation;
        }

        public void setRelation(int relation) {
            this.relation = relation;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public String getHeight() {
            return height;
        }

        public void setHeight(String height) {
            this.height = height;
        }

        public String getWeight() {
            return weight;
        }

        public void setWeight(String weight) {
            this.weight = weight;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }
    }
}
